using Z2102WinForms;

namespace Z2102WinForms
{
    internal static class Program
    {
        public static string ConsoleAppPath { get; private set; } = "";
        [STAThread]
        static void Main()
        {
            ConsoleAppPath = Application.StartupPath.
                Replace("WinForms", "Console").
                Replace("-windows\\", "\\Z2102Console.exe");

            ApplicationConfiguration.Initialize();
            Application.Run(new MainFrom());
        }

        public static void ExecConsoleApp(string args)
        {
            System.Diagnostics.Process.Start(ConsoleAppPath, args);
        }
    }
}